<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8" />
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <meta name="viewport" content="width=1440" />
    <title>{if isset($article.title)}{$article.title} - {/if}{if isset($catInfo.title)}{$catInfo.title} - {/if}{$config.name}</title>
    <meta name="keywords" content="{if isset($article.keywords)}{$article.keywords}{elseif isset($catInfo.keywords)}{$catInfo.keywords}{else}{$config.keyword}{/if}">
    <meta name="description" content="{if isset($article.subtitle)}{$article.subtitle}{elseif isset($catInfo.desc_text)}{$catInfo.desc_text}{else}{$config.content}{/if}">
    <link rel="shortcut icon" href="/public/home/img/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="/public/home/css/swiper-bundle.min.css">
    <link rel="stylesheet" href="/public/home/css/animate.min.css" />
    <link rel="stylesheet" href="/public/home/css/init.css">
    <link rel="stylesheet" href="/public/home/css/index.css">
    <link rel="stylesheet" href="/public/home/css/css.css">
    <link rel="stylesheet" href="/public/home/css/media.css">
    <script src="/public/home/js/jquery-3.3.1.js"></script>

</head>

<body>
<div class="page-box">

    <!-- 顶部 -->
    <div class="header-wrap">
        <div class="wrap-box wrap-between">
            <div class="logo-box">
                <h1>
                    <a class="logo-wrap" href="/" title="{$config.name}" style="background-image: url({$config.pic});">
                        {$config.name}
                    </a>
                </h1>
            </div>
            <div class="seach">
                <form action="/index/article/search" method="get">
                    <select name="model">
                        <option value="">请选择模型</option>
                        {foreach name="modelList" item="model"}
                            <option value="{$model.template_name}" {if isset($modelName) && $modelName == $model.template_name}selected{/if}>{$model.template_name}</option>
                        {/foreach}
                    </select>
                    <input type="text" name="keyword" placeholder="{if isset($keyword)}{$keyword}{else}站内搜索{/if}"  class="seach_t" value="{if isset($keyword)}{$keyword}{/if}" />
                    <input type="submit" value="搜索" class="seach_s" />
                </form>
            </div>
            <div class="nav-box">
                <nav>
                    <ul class="nav-wrap wrap-between">
                        <li><a href="/">首页</a></li>
                        {foreach name="nav" item="navValue"}
                        <!--一级菜单-->
                        <li>
                        <a {if isset($navValue.url)}href="{$navValue.url}"{/if}>{$navValue.title|raw}</a>
                            {if $navValue.listCount > 0}
                                <!--二级菜单-->
                                <ul class="menu-wrap ">
                                    {foreach name="navValue.childList" item="childValue"}
                                    <li>
                                        <a href="{$childValue.url}">{$childValue.title}</a>
                                    </li>
                                    {/foreach}
                                </ul>
                            {/if}
                        </li>
                        {/foreach}

                    </ul>
                    {foreach name="languagesList" item="lan"}
                        <a href="?lang={$lan}">
                            <div class="eng">
                                <img src="/public/lang/images/{$lan}.png" style="width:20px;height:14px;">
                                <p>{$lan}</p>
                            </div>
                        </a>
                    {/foreach}
                </nav>
                <div class="nav-icon">
                    &#9776
                </div>
            </div>
            <div class="hertre_lpo">
                <div class="hertre_nou">
                    <h1>{$function->getAdPosition('1')['title']}：{$function->getAdPosition('1')['desc_text']}</h1>
                    <p><a href="/index/article/list/id/17">{$function->getCatInfo('17')['title']} </a>
                        <a href="/index/article/list/id/18">{$function->getCatInfo('18')['title']} </a>
                        {if empty($userInfo.id)}
                            <a href="/login">去登录</a>
                        {else}
                            <a href="/member">{$userInfo.username}</a>
                            <a id="logOut" style="cursor: pointer;">登出</a>
                        {/if}

                    </p>
                </div>
            </div>


        </div>
    </div>